package com.prothink.threadproject.task;

import java.util.concurrent.*;

public class MyThreadPool {

    //核心线程数为5的线程池
    public static ExecutorService THREAD_POOL = new ThreadPoolExecutor(
            5,
            10,
            5,
            TimeUnit.SECONDS,
            new LinkedBlockingDeque<>(),
            Executors.defaultThreadFactory(),
            new ThreadPoolExecutor.AbortPolicy()
    );
}
